package models

import (
	"goapp-web-server/app/utils/orm"
)

type CmsMaterial struct {
	Model       `xorm:"extends"`
	Name        string `json:"name" xorm:"name"`
	Type        int8   `json:"type" xorm:"type default '0' ENUM('0','1','2','3')"`
	Url         string `json:"url" xorm:"url"`
	Description string `json:"description" xorm:"description"`
}

func (u CmsMaterial) TableName() string {
	return "cms_material"
}

func init() {
	orm.RegisterModel(&CmsMaterial{})
}
